export let name = "Goods";
export let goods = [
    {
        src : "../indexpictures/1.png",
        price : "15.00",
        initialPrice : null,
        text : "洁丽雅（Grace）3条抗菌新疆棉毛巾 纯棉柔软家用洗脸吸水情侣擦脸洗澡巾 AAA级抗菌 7234cm",
        soldNumber : 13,
        miniTitle : 'AAA级抗菌',
        commend :  [
            {
                userName : "用户1",
                conmmendContent : null,
                starNumber : 4,
                userAvatar :'../../imgs/userAvatar2.jpeg'
            }
        ],
        path : "/goods/good1",
        loader:"./goodpages/good1.js",
        choose : null,
        parameter : [//参数
            {
               key: "材质",
               value   : "棉",
            },
            {
                key: "数量",
                value   : "3",
            }
        ]
    },
    {
        src : "../../indexpictures/2.png",
        price : "16.00",
        initialPrice : "20.00",
        text : "心相印卷纸厨房卷纸 吸油吸水厨房用纸 75节2卷纸巾 加厚擦手纸 食品接触级（有印花 新旧随机发货）",
        soldNumber : 28,
        miniTitle : '吸油吸水厨房用纸',
        commend : null,
        path : "/goods/good2",
        loader:"./goodpages/good1.js",
        choose : null,
        parameter : [//参数
            {
                key: "适用场所",
                value   : "厨房",
            },
            {
                key: "材质",
                value   : "棉",
            }
        ]
    },
    {
        src : "../../indexpictures/3.png",
        price : "298.00",
        initialPrice : "368.00",
        text : "水星家纺 床上四件套100%纯棉被套床单枕套床上用品套件全棉被罩被单1.8米床弗利安",
        soldNumber : 1,
        miniTitle : '100%纯棉',
        commend : null,
        path : "/goods/good3",
        loader:"./goodpages/good1.js",
        choose : null,
        parameter : [//参数
            {
                key: "品牌",
                value   : "水晶家纺",
            },
            {
                key: "材质",
                value   : "纯棉",
            },
            {
                key: "尺码",
                value   : "180*200",
            }
        ]
    },
    {
        src : "../../indexpictures/4.png",
        price : "0.00",
        initialPrice : null,
        text : "猫人男士睡衣男夏季100%纯棉薄款圆领套头短袖套装男ins潮休闲运动可外穿家居服",
        soldNumber : 14,
        miniTitle : '休闲运动可外穿家居服',
        commend : null,
        path : "/goods/good4",
        loader:"./goodpages/good1.js",
        choose : [
            {
                //库存
                //颜色
            }
        ],
        parameter : [//参数
            {
                key: "材质",
                value   : "棉",
            },
            {
                key: "厚度",
                value   : "常规",
            },
            {
                key: "适用季节",
                value   : "夏季",
            },
            {
                key: "穿着方式",
                value   : "套头",
            },
            {
                key: "裤长",
                value   : "短裤",
            },
            {
                key: "风格",
                value   : "文艺风",
            }
        ]
    },
    {
        src : "../../indexpictures/5.png",
        price : "69.00",
        initialPrice : "89.00",
        text : "CACUSS B0520帽子男百搭潮流棒球帽女休闲户外鸭舌帽时尚情侣款遮阳帽教师节礼物 卡其色均码适用头围57-59CM",
        soldNumber : 16,
        miniTitle : '百搭潮流棒球帽',
        commend : [
            {
                userName : "用户2",
                conmmendContent : "一般般!",
                starNumber : 4,
                userAvatar :'../../imgs/userAvatar2.jpeg'
            }
        ],
        choose : null,
        path : "/goods/good5",
        loader:"./goodpages/good1.js",
        parameter : [//参数
            {
                key: "商品编号",
                value   : "190395003",
            },
            {
                key: "适用性别",
                value   : "通用",
            },
            {
                key: "材质",
                value   : "棉",
            },
            {
                key: "流行元素",
                value   : "车缝线",
            },
            {
                key: "风格",
                value   : "百搭",
            },
            {
                key: "适用季节",
                value   : "四季通用",
            },
        ]
    },
    {
        src : "../../indexpictures/6.png",
        price : "349.00",
        initialPrice : "420.00",
        text : "【UPF80+】波司登防晒衣2022年夏季防紫外线冰丝皮肤衣外套女B20525252-Y",
        soldNumber : 15,
        miniTitle : '夏季防紫外线冰丝',
        commend : [
            {
                userName : "用户1",
                conmmendContent : "很好用!",
                starNumber : 5,
                userAvatar :'../../imgs/userAvatar1.png'
            },
            {
                userName : "用户2",
                conmmendContent : "一般般!",
                starNumber : 4,
                userAvatar :'../../imgs/userAvatar2.jpeg'
            }
        ],
        choose : null,
        path : "/goods/good6",
        loader:"./goodpages/good1.js",
        parameter : [//参数
            {
                key: "厚度",
                value   : "薄款",
            },
            {
                key: "衣长",
                value   : "短款",
            },
            {
                key: "休闲风",
                value   : "简约",
            },
            {
                key: "流行元素",
                value   : "口袋",
            },
        ]
    },

]
let goodRoute = {};
goods.forEach(function (obj){
    goodRoute[obj.path] = obj.loader;
});
export let goodRoutes = goodRoute;


let product = {};
goods.forEach(function (obj){
    product[obj.path] = obj;
});
export let productMessages = product;
